package com.wjd.wshow.repository;

import com.wjd.wshow.entity.Config;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ConfigRepository extends BaseRepository<Config, String> {

    @Query("SELECT c FROM #{#entityName} c WHERE c.name = ?1")
    Config getByName(String name);
}
